package cn.wch.blelib.peripheral.builder.constant;

/**
 * 描述符权限
 */
public class DescriptorPermission {
    /**
     * 描述符读取权限
     */
    public static final int PERMISSION_READ = 0x01;

    /**
     * 描述符权限：允许加密读取操作
     */
    public static final int PERMISSION_READ_ENCRYPTED = 0x02;

    /**
     * 描述符权限：允许中间人保护阅读
     */
    public static final int PERMISSION_READ_ENCRYPTED_MITM = 0x04;

    /**
     * 描述符写入权限
     */
    public static final int PERMISSION_WRITE = 0x10;

    /**
     * 描述符权限：允许加密写入
     */
    public static final int PERMISSION_WRITE_ENCRYPTED = 0x20;

    /**
     * 描述符权限：允许使用中间人保护进行加密写入
     */
    public static final int PERMISSION_WRITE_ENCRYPTED_MITM = 0x40;

    /**
     * 描述符权限：允许签名的写入操作
     */
    public static final int PERMISSION_WRITE_SIGNED = 0x80;

    /**
     * 描述符权限：允许中间人保护的签名写操作
     */
    public static final int PERMISSION_WRITE_SIGNED_MITM = 0x100;
}
